// $(document).load(function(){
// 	var  homeClass = getEl("home");
// 	var  computerClass = getEl("computer");
// 	$("#home").click(function(){
		
// 		homeClass.className = "tab-item active";
// 		computerClass.className = "tab-item";
// 	});
// 	$("#computer").click(function(){
		
// 		computerClass.className = "tab-item active";
// 		homeClass.className = "tab-item";
// 	});
// 	// $("#home").click(function(){
// 	// 	var  homeClass = getEl("home");
// 	// 	homeClass.className = "tab-item active";
// 	// })
// 	// $("#home").click(function(){
// 	// 	var  homeClass = getEl("home");
// 	// 	homeClass.className = "tab-item active";
// 	// })
// 	// body...
// });



        EventUtil.addHandler(window, "load", function(){
            $(".item-link").click(function () {
                var brand = $(this).find("div.item-title")[0].innerText;
                localStorage.setItem("brand",brand);
                window.location.href="selectSeries.html";
            });
            $("#submitorder").click(function(){
            	localStorage.setItem("orderName",document.getElementsByName("orderName")[0].value);
            	localStorage.setItem("orderSex",document.getElementsByName("orderSex")[0].value);
            	localStorage.setItem("orderAddress",document.getElementsByName("orderAddress")[0].value);
            	localStorage.setItem("orderType",document.getElementsByName("orderType")[0].value);
            	localStorage.setItem("orderFix",document.getElementsByName("orderFix")[0].value);
            	localStorage.setItem("orderTel",document.getElementsByName("orderTel")[0].value);
                location.href = "selectComputer.html"

            });
            $("#mycomputer").click(function(){
                location.href = "mycomputer.html";


            });
            $("#myorder").click(function(){
                location.href = "myorder.html";


            });
            $("#quit").click(function(){
                location.href = "index.html";
                localStorage.clear();


            });


        });
